﻿using DTcms.Core.Web.Filters;
using Microsoft.AspNetCore.Mvc;

namespace DTcms.Core.Web.Controllers
{
    [TempleteFilter]
    [Route("[controller]")]
    [ApiExplorerSettings(IgnoreApi = true)]
    public class AccountController : Controller
    {
        /// <summary>
        /// 会员中心
        /// </summary>
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 用户登录
        /// </summary>
        [Route("Login")]
        public IActionResult Login()
        {
            return View();
        }

        /// <summary>
        /// 用户注册
        /// </summary>
        [Route("Register")]
        public IActionResult Register()
        {
            return View();
        }

        /// <summary>
        /// 找回密码
        /// </summary>
        [Route("Reset/Password")]
        public IActionResult ResetPassword()
        {
            return View();
        }

        /// <summary>
        /// 订单列表
        /// </summary>
        [Route("Order/List")]
        public IActionResult OrderList()
        {
            return View(0);
        }

        /// <summary>
        /// 订单列表
        /// </summary>
        [Route("Order/List/{id}")]
        public IActionResult OrderList([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 订单列表
        /// </summary>
        [Route("Order/Show/{id}")]
        public IActionResult OrderShow([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 售后列表
        /// </summary>
        [Route("Refund/List")]
        public IActionResult RefundList()
        {
            return View();
        }

        /// <summary>
        /// 售后申请
        /// </summary>
        [Route("Refund/Add/{productId}")]
        public IActionResult RefundAdd([FromRoute] int productId)
        {
            return View(productId);
        }

        /// <summary>
        /// 售后详情
        /// </summary>
        [Route("Refund/Show/{id}")]
        public IActionResult RefundShow([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 订单物流
        /// </summary>
        [Route("Order/Delivery")]
        public IActionResult OrderDelivery()
        {
            return View();
        }

        /// <summary>
        /// 订单评价
        /// </summary>
        [Route("Evaluate/Edit/{id}")]
        public IActionResult EvaluateEdit([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 地址列表
        /// </summary>
        [Route("Address/List")]
        public IActionResult AddressList()
        {
            return View();
        }

        /// <summary>
        /// 地址添加
        /// </summary>
        [Route("Address/Edit")]
        public IActionResult AddressEdit()
        {
            return View(0);
        }

        /// <summary>
        /// 地址编辑
        /// </summary>
        [Route("Address/Edit/{id}")]
        public IActionResult AddressEdit([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 商品收藏
        /// </summary>
        [Route("Favorite/List")]
        public IActionResult FavoriteList()
        {
            return View();
        }

        /// <summary>
        /// 我的优惠券
        /// </summary>
        [Route("Coupon/List")]
        public IActionResult CouponList()
        {
            return View();
        }

        /// <summary>
        /// 投稿列表
        /// </summary>
        [Route("Contribute/List")]
        public IActionResult ContributeList()
        {
            return View();
        }

        /// <summary>
        /// 投稿编辑
        /// </summary>
        [Route("Contribute/Edit")]
        public IActionResult ContributeEdit()
        {
            return View(0);
        }

        /// <summary>
        /// 投稿编辑
        /// </summary>
        [Route("Contribute/Edit/{id}")]
        public IActionResult ContributeEdit([FromRoute] int id)
        {
            return View(id);
        }

        /// <summary>
        /// 余额列表
        /// </summary>
        [Route("Balance/List")]
        public IActionResult BalanceList()
        {
            return View();
        }

        /// <summary>
        /// 充值列表
        /// </summary>
        [Route("Recharge/List")]
        public IActionResult RechargeList()
        {
            return View();
        }

        /// <summary>
        /// 在线充值
        /// </summary>
        [Route("Recharge/Add")]
        public IActionResult RechargeAdd()
        {
            return View();
        }

        /// <summary>
        /// 个人资料
        /// </summary>
        [Route("Setting/Info")]
        public IActionResult SettingInfo()
        {
            return View();
        }

        /// <summary>
        /// 修改密码
        /// </summary>
        [Route("Setting/Password")]
        public IActionResult SettingPassword()
        {
            return View();
        }
    }
}
